
/* 
 描述：定义点赞功能的数据访问接口，包括点赞状态查询、点赞记录增删改等操作 
 完成人：吴悠 
 完成时间: 2025/04/27
 */
package com.jiesenhe.qacommunity.mapper;

import com.jiesenhe.qacommunity.pojo.LikeQuestion;
import org.apache.ibatis.annotations.Mapper;
import com.jiesenhe.qacommunity.pojo.Like;

import java.util.List;

@Mapper
public interface LikeMapper {
    int getLikeStatus(Like like);

    int addLikeRecord(Like like);

    int deleteLikeRecord(Like like);

    int updateLikeStatus(Like like);

    int deleteLikeStatus(Like like);

    List<LikeQuestion> getLikeQuestion(int userId);
}
